<?php
Class CustomerModel extends Model{
	Public $validate = array(
		array('name','nonull','客户名字不能为空',2,3),
		array('phone','phone','请输入一个有效的手机号码',3,3),
		);
	public $auto=array(
		array('addtime','time','function',2,1)
	);

	Public function addCustomer(){
		if($this->create()){
			return $this->add();
		}
	}

	Public function editCustomer(){
		if($this->create()){
			return $this->save();
		}
	}
}